package com.springboot.project.common.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
/**
 * 系统字典
 * 
 * @author lby
 * @email 2571664742@qq.com
 * @date 2018-07-01
 */

@TableName("sys_dict")
public class Dict extends Model<Dict> {

	private static final long serialVersionUID = 1L;
	
	//id
	private Integer id;
	//编码
	private String code;
	//中文
	private String name;
	//备注
	private String tips;

	/**
	 * 设置：id
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：编码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：编码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：中文
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：中文
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：备注
	 */
	public void setTips(String tips) {
		this.tips = tips;
	}
	/**
	 * 获取：备注
	 */
	public String getTips() {
		return tips;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
        return "Dict{" +
				"id=" + id + "," +
				"code=" + code + "," +
				"name=" + name + "," +
				"tips=" + tips + "," +
	        "}";
	}
}
